﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tatibah
{
    public enum enumContentType
    {
        Image,
        Paragraph,
        Table
    }

    public class Content
    {
        public enumContentType ContentType;
        private object Object = null;
       

        public Content(Paragraph ThisParagraph)
        {
            ContentType = enumContentType.Paragraph;
            Object = ThisParagraph;
        }

        public Content(Table ThisTable)
        {
            ContentType = enumContentType.Table;
            Object = ThisTable;
        }

        public Content(Image ThisImage)
        {
            ContentType = enumContentType.Image;
            Object = ThisImage;
        }

        public Paragraph Paragraph
        {
            get {return (Paragraph) Object;}
        }

        public Image Image
        {
            get { return (Image) Object; }
        }

        public Table Table
        {
            get { return (Table) Object; }
        }
    }
}
